package com.dynamo.transport.network.practise.channel;

/**
 * @author duanyimiao
 * @create 2018-11-18 6:31 AM
 * @description
 **/
public class TestPipelineFctory implements ChannelPipelineFactory {
    @Override
    public ChannelPipeline getPipeline() {

        ChannelPipeline pipeline = Channels.getPipeline();
        pipeline.addLast("simpleUpstream",new SimpleChannelUpstreamHandler());
        pipeline.addLast("simpleDownstream",new SimpleChannelDownstreamHandler());
        pipeline.addLast("decoder",new DecoderHandler());
        pipeline.addLast("encoder",new EncoderHandler());

        pipeline.addLast("logic",new LogicHandler());

        return pipeline;
    }
}
